// 引入react核心库
import React from "react"
// 引入store
import store from "./redux/store"
import {Provider} from "react-redux"
// 引入ReactDOM
import ReactDOM from "react-dom/client"
import App from "./App"

const root = new ReactDOM.createRoot(document.getElementById("root"))

root.render(
  <React.StrictMode>
    {/* 此处需要用rovider包裹App，目的是让App所有的后代容器组件都能接收到store */}
    <Provider store={store}>
      <App></App>
    </Provider>
  </React.StrictMode>
)
